
<!doctype>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>一码通网上商城</title>
<meta name="keywords" content="一码通网上商城" />
<meta name="description" content="一码通网上商城" />
<style type="text/css">
.ncm-user-info .avatar{
	margin:0 auto;
	float:none!important;
}
</style>
<link rel="stylesheet" href="../css/common.css">
<link rel="shortcut icon" href="http://beian.80wlkj.com/favicon.ico" />
<link href="http://beian.80wlkj.com/shop/templates/default/css/base.css" rel="stylesheet" type="text/css">
<link href="http://beian.80wlkj.com/shop/templates/default/css/home_header.css" rel="stylesheet" type="text/css">
<link href="http://beian.80wlkj.com/shop/templates/default/css/home_login.css" rel="stylesheet" type="text/css">
<link href="http://beian.80wlkj.com/shop/resource/font/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<!--[if IE 7]>
  <link rel="stylesheet" href="http://beian.80wlkj.com/shop/resource/font/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->

<!--[if lt IE 9]>
      <script src="http://beian.80wlkj.com/data/resource/js/html5shiv.js"></script>
      <script src="http://beian.80wlkj.com/data/resource/js/respond.min.js"></script>
<![endif]-->
<!--[if IE 6]>
<script src="http://beian.80wlkj.com/data/resource/js/IE6_PNG.js"></script>
<script>
DD_belatedPNG.fix('.pngFix');
</script>
<script>
// <![CDATA[
if((window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0)&&(document.execCommand))
try{
document.execCommand("BackgroundImageCache", false, true);
   }
catch(e){}
// ]]>
</script>
<![endif]-->
<script src="http://beian.80wlkj.com/data/resource/js/jquery.js"></script>
<script src="http://beian.80wlkj.com/data/resource/js/common.js" charset="utf-8"></script>
<script src="http://beian.80wlkj.com/data/resource/js/jquery-ui/jquery.ui.js"></script>
<script src="http://beian.80wlkj.com/data/resource/js/jquery.validation.min.js"></script>
<script src="http://beian.80wlkj.com/data/resource/js/jquery.masonry.js"></script>
<script src="http://beian.80wlkj.com/data/resource/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/storage.js"></script>

<script type="text/javascript">
var PRICE_FORMAT = '&yen;%s';
$(function(){
	$(".head-user-menu dl").hover(function() {
		$(this).addClass("hover");
	},
	function() {
		$(this).removeClass("hover");
	});
	$('.head-user-menu .my-mall').mouseover(function(){// 最近浏览的商品
		load_history_information();
		$(this).unbind('mouseover');
	});
	$('.head-user-menu .my-cart').mouseover(function(){// 运行加载购物车
		load_cart_information();
		$(this).unbind('mouseover');
	});
	$('#button').click(function(){
	    if ($('#keyword').val() == '') {
		    return false;
	    }
	});
    });

$(function(){
	//search
	var act = "member_order";
	if (act == "store_list"){
		$("#search").children('ul').children('li:eq(1)').addClass("current");
		$("#search").children('ul').children('li:eq(0)').removeClass("current");
		}
	$("#search").children('ul').children('li').click(function(){
		$(this).parent().children('li').removeClass("current");
		$(this).addClass("current");
		$('#search_act').attr("value",$(this).attr("act"));
		$('#keyword').attr("placeholder",$(this).attr("title"));
	});
	$("#keyword").blur();
	/*$("img").lazyload({
    	placeholder : "http://beian.80wlkj.com/shop/templates/default/images/grey.gif",  
		effect : "fadeIn",  
    	failurelimit : 10  
		
    });*/
});
</script>
</head>
<body>
<div class="public-top-layout w">
<div class="topbar wrapper">
<div class="user-entry">
您好 <span>
<span id="username"></span>
</span> ，欢迎来到 <a href="" title="首页" alt="首页"><span>一码通网上商城</span></a><span><span id="loginIn">[登录]</span> </span><span><span id="register">[注册]</span> </span> <span><span id="loginOut">[退出]</span> </span>
</div>
<div class="quick-menu">
<dl>
<dt><a href="http://beian.80wlkj.com/shop/index.php?act=show_joinin&op=index" title="免费开店">免费开店</a><i></i></dt>
<dd>
<ul>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=show_joinin&op=index" title="招商入驻">招商入驻</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=seller_login&op=show_login" target="_blank" title="登录商家管理中心">商家登录</a></li>
</ul>
</dd>
 </dl>
<dl>
<dt><a href="../view/orderList.html?act=member_order">我的订单</a><i></i></dt>
<dd>
<ul>
<li><a href="../view/orderList.html?act=member_order&state_type=state_new">待付款订单</a></li>
<li><a href="../view/orderList.html?act=member_order&state_type=state_send">待确认收货</a></li>
<li><a href="../view/orderList.html?act=member_order&state_type=state_noeval">待评价交易</a></li>
</ul>
</dd>
</dl>
</div>
</div>
</div>
<div class="header-wrap">
<header class="public-head-layout wrapper">
<h1 class="site-logo"><a href="" style="display:block;;width:60%;margin:0 auto;"><img src="../imgs/index/logo.png" class="pngFix"></a></h1>
<div style="float:left;height:90px;line-height:90px;">
<ul class="site-menu">
<li><a href="http://beian.80wlkj.com" class="current">首页</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=brand&op=index"> 品牌</a></li>
 <li><a href="http://beian.80wlkj.com/shop/index.php?act=store_list&op=index">店铺</a></li>
<li><a href="http://beian.80wlkj.com/microshop">个人中心</a></li>
</ul>

</div>

<div id="search" class="head-search-bar" style="float:right;">

<ul class="tab">
<li title="请输入您要搜索的商品关键字" act="search" class="current">商品</li>
<li title="请输入您要搜索的店铺关键字" act="store_list">店铺</li>
</ul>
<form class="search-form" method="get" action="http://beian.80wlkj.com/shop">
<input type="hidden" value="search" id="search_act" name="act">
<input placeholder="请输入您要搜索的商品关键字" name="keyword" id="keyword" type="text" class="input-text" value="" maxlength="60" x-webkit-speech lang="zh-CN" onwebkitspeechchange="foo()" x-webkit-grammar="builtin:search" />
<input type="submit" id="button" value="搜索" class="input-submit">
</form>
</div>
</header>
</div>

<script type="text/javascript">
//动画显示边条内容区域
$(function() {
	$(function() {
		$('#activator').click(function() {
			$('#content-cart').animate({'right': '-250px'});
			$('#content-compare').animate({'right': '-150px'});
			$('#ncToolbar').animate({'right': '-60px'}, 300,
			function() {
				$('#ncHideBar').animate({'right': '59px'},	300);
			});
	        $('div[nctype^="bar"]').hide();
		});
		$('#ncHideBar').click(function() {
			$('#ncHideBar').animate({
				'right': '-79px'
			},
			300,
			function() {
				$('#content-cart').animate({'right': '-250px'});
				$('#content-compare').animate({'right': '-250px'});
				$('#ncToolbar').animate({'right': '0'},300);
			});
		});
	});
    $("#compare").click(function(){
    	if ($("#content-compare").css('right') == '-210px') {
 		   loadCompare(false);
 		   $('#content-cart').animate({'right': '-210px'});
  		   $("#content-compare").animate({right:'50px'});
    	} else {
    		$(".close").click();
    		$(".chat-list").css("display",'none');
        }
	});
    $("#rtoolbar_cart").click(function(){
        if ($("#content-cart").css('right') == '-210px') {
         	$('#content-compare').animate({'right': '-210px'});
    		$("#content-cart").animate({right:'50px'});
    		if (!$("#rtoolbar_cartlist").html()) {
    			$("#rtoolbar_cartlist").load('index.php?act=cart&op=ajax_load&type=html');
    		}
        } else {
        	$(".close").click();
        	$(".chat-list").css("display",'none');
        }
	});
	$(".close").click(function(){
		$(".content-box").animate({right:'-210px'});
      });

	$(".quick-menu dl").hover(function() {
		$(this).addClass("hover");
	},
	function() {
		$(this).removeClass("hover");
	});

    // 右侧bar用户信息
    $('div[nctype="a-barUserInfo"]').click(function(){
        $('div[nctype="barUserInfo"]').toggle();
    });
    // 右侧bar登录
    $('div[nctype="a-barLoginBox"]').click(function(){
        $('div[nctype="barLoginBox"]').toggle();
        document.getElementById('codeimage').src='http://beian.80wlkj.com/shop/index.php?act=seccode&op=makecode&nchash=ee468b37&t=' + Math.random();
    });
    $('a[nctype="close-barLoginBox"]').click(function(){
        $('div[nctype="barLoginBox"]').toggle();
    });
        $('#rtoobar_cart_count').html(1).show();
    });
</script>
<div class="nch-breadcrumb-layout">
<div class="nch-breadcrumb wrapper"><i class="icon-home"></i>
<span><a href="http://beian.80wlkj.com/shop">首页</a></span><span class="arrow">></span>
<span><a href="http://beian.80wlkj.com/shop/index.php?act=member&op=home">我的商城</a></span><span class="arrow">></span>
<span>实物交易订单</span>
</div>
</div>
<link href="http://beian.80wlkj.com/shop/templates/default/css/member.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://beian.80wlkj.com/data/resource/js/member.js"></script>
<script type="text/javascript" src="http://beian.80wlkj.com/data/resource/js/ToolTip.js"></script>
<script>
//sidebar-menu
$(document).ready(function() {
    $.each($(".side-menu > a"), function() {
        $(this).click(function() {
            var ulNode = $(this).next("ul");
            if (ulNode.css('display') == 'block') {
            	$.cookie(COOKIE_PRE+'Mmenu_'+$(this).attr('key'),1);
            } else {
            	$.cookie(COOKIE_PRE+'Mmenu_'+$(this).attr('key'),null);
            }
			ulNode.slideToggle();
				if ($(this).hasClass('shrink')) {
					$(this).removeClass('shrink');
				} else {
					$(this).addClass('shrink');
				}
        });
    });
	$.each($(".side-menu-quick > a"), function() {
        $(this).click(function() {
            var ulNode = $(this).next("ul");
			ulNode.slideToggle();
				if ($(this).hasClass('shrink')) {
					$(this).removeClass('shrink');
				} else {
					$(this).addClass('shrink');
				}
        });
    });
});
$(function() {
	//展开关闭常用菜单设置
	$('.set-btn').bind("click",
	function() {
		$(".set-container-arrow").show("fast");
		$(".set-container").show("fast");
	});
	$('[nctype="closeCommonOperations"]').bind("click",
	function() {
		$(".set-container-arrow").hide("fast");
		$(".set-container").hide("fast");
	});

    $('dl[nctype="checkcCommonOperations"]').find('input').click(function(){
        var _this = $(this);
        var _dd = _this.parents('dd:first');
        var _type = _this.is(':checked') ? 'add' : 'del';
        var _value = _this.attr('name');
        var _operations = $('[nctype="commonOperations"]');

        // 最多添加5个
        if (_operations.find('li').length >= 5 && _type == 'add') {
            showError('最多只能添加5个常用选项。');
            return false;
        }
        $.getJSON('http://beian.80wlkj.com/shop/index.php?act=member&op=common_operations', {type : _type, value : _value}, function(data){
            if (data) {
                if (_type == 'add') {
                    _dd.addClass('checked');
                    if (_operations.find('li').length == 0) {
                        _operations.fadeIn('slow');
                    }
                    _operations.find('ul').append('<li style="display : none;" nctype="' + _value + '"><a href="' + _this.attr('data-value') + '">' + _this.attr('data-name') + '</a></li>');
                    _operations.find('li[style]').fadeIn('slow');
                } else {
                    _dd.removeClass('checked');
                    _operations.find('li[nctype="' + _value + '"]').fadeOut('slow', function(){
                        $(this).remove();
                        if (_operations.find('li').length == 0) {
                            _operations.fadeOut('slow');
                        }
                    });
                }
            }
        });
    });
});

</script>
<div class="ncm-container">
<div class="left-layout">
<div class="ncm-l-top">
<h2><a href="index.php?act=member&op=home" title="我的商城">我的商城</a></h2>
<!-- <a href="javascript:void(0)" title="常用菜单设置" class="set-btn"></a> -->
<div class="set-container-arrow"></div>
<div class="set-container">
<div class="title">
<h3>常用菜单设置</h3>
<a href="javascript:void(0)" title="关闭" class="close-btn close-container" nctype="closeCommonOperations"></a></div>
<div class="tip">勾选您经常使用的菜单，最多可选5个。 </div>
<div class="menu-list">
<dl class="collapsed" nctype="checkcCommonOperations">
<dt>交易管理</dt>
<dd class="checked">
<label>
<input name="member_order" data-value="../view/orderList.html?act=member_order&op=index" data-name="实物交易订单" type="checkbox" class="checkbox" checked="checked" />
实物交易订单</label>
</dd>
<dd>
<label>
<input name="member_evaluate" data-value="http://beian.80wlkj.com/shop/index.php?act=member_evaluate&op=list" data-name="交易评价/晒单" type="checkbox" class="checkbox" />
交易评价/晒单</label>
</dd>
<dd>
<label>
<input name="predeposit" data-value="http://beian.80wlkj.com/shop/index.php?act=predeposit&op=pd_log_list" data-name="账户余额" type="checkbox" class="checkbox" />
账户余额</label>
</dd>
<dd>
<label>
<input name="member_flea" data-value="http://beian.80wlkj.com/shop/index.php?act=member_flea&op=index" data-name="我的闲置" type="checkbox" class="checkbox" />
我的闲置</label>
</dd>
<dd>
<label>
<input name="member_points" data-value="http://beian.80wlkj.com/shop/index.php?act=member_points&op=index" data-name="我的积分" type="checkbox" class="checkbox" />
我的积分</label>
</dd>
<dd>
<label>
<input name="member_voucher" data-value="http://beian.80wlkj.com/shop/index.php?act=member_voucher&op=index" data-name="我的代金券" type="checkbox" class="checkbox" />
我的代金券</label>
</dd>
</dl>
<dl class="collapsed" nctype="checkcCommonOperations">
<dt>客户服务</dt>
<dd>
<label>
<input name="member_refund" data-value="http://beian.80wlkj.com/shop/index.php?act=member_refund&op=index" data-name="退款及退货" type="checkbox" class="checkbox" />
退款及退货</label>
</dd>
<dd>
<label>
<input name="member_complain" data-value="http://beian.80wlkj.com/shop/index.php?act=member_complain&op=index" data-name="交易投诉" type="checkbox" class="checkbox" />
 交易投诉</label>
</dd>
<dd>
<label>
<input name="member_consult" data-value="http://beian.80wlkj.com/shop/index.php?act=member_consult&op=my_consult" data-name="商品咨询" type="checkbox" class="checkbox" />
商品咨询</label>
</dd>
<dd>
<label>
<input name="member_inform" data-value="http://beian.80wlkj.com/shop/index.php?act=member_inform&op=index" data-name="违规举报" type="checkbox" class="checkbox" />
违规举报</label>
</dd>
<dd>
<label>
<input name="member_mallconsult" data-value="http://beian.80wlkj.com/shop/index.php?act=member_mallconsult&op=index" data-name="平台客服" type="checkbox" class="checkbox" />
平台客服</label>
</dd>
</dl>
<dl class="collapsed" nctype="checkcCommonOperations">
<dt>资料管理</dt>
<dd class="checked">
<label>
<input name="member_information" data-value="http://beian.80wlkj.com/shop/index.php?act=member_information&op=member" data-name="账户信息" type="checkbox" class="checkbox" checked="checked" />
账户信息</label>
</dd>
<dd>
<label>
<input name="member_security" data-value="http://beian.80wlkj.com/shop/index.php?act=member_security&op=index" data-name="账户安全" type="checkbox" class="checkbox" />
账户安全</label>
</dd>
<dd>
<label>
<input name="member_address" data-value="http://beian.80wlkj.com/shop/index.php?act=member_address&op=address" data-name="收货地址" type="checkbox" class="checkbox" />
收货地址</label>
</dd>
<dd class="checked">
<label>
<input name="member_snsfriend" data-value="http://beian.80wlkj.com/shop/index.php?act=member_snsfriend&op=find" data-name="我的好友" type="checkbox" class="checkbox" checked="checked" />
我的好友</label>
</dd>
<dd>
<label>
<input name="member_goodsbrowse" data-value="http://beian.80wlkj.com/shop/index.php?act=member_goodsbrowse&op=list" data-name="我的足迹" type="checkbox" class="checkbox" />
我的足迹</label>
</dd>
<dd class="checked">
<label>
<input name="member_connect" data-value="http://beian.80wlkj.com/shop/index.php?act=member_connect&op=qqbind" data-name="第三方账号登录" type="checkbox" class="checkbox" checked="checked" />
第三方账号登录</label>
</dd>
<dd>
<label>
<input name="member_sharemanage" data-value="http://beian.80wlkj.com/shop/index.php?act=member_sharemanage&op=index" data-name="分享绑定" type="checkbox" class="checkbox" />
分享绑定</label>
</dd>
</dl>
<dl class="collapsed" nctype="checkcCommonOperations">
<dt>应用管理</dt>
<dd>
<label>
<input name="sns" data-value="http://beian.80wlkj.com/shop/index.php?act=member_snshome&op=index" data-name="个人主页" type="checkbox" class="checkbox" />
个人主页</label>
 </dd>
<dd>
<label>
<input name="cms" data-value="http://beian.80wlkj.com/cms/index.php?act=member_article&op=article_list" data-name="我的CMS" type="checkbox" class="checkbox" />
我的CMS</label>
</dd>
<dd class="checked">
<label>
<input name="circle" data-value="http://beian.80wlkj.com/circle/index.php?act=p_center&op=index" data-name="我的圈子" type="checkbox" class="checkbox" checked="checked" />
我的圈子</label>
</dd>
<dd>
<label>
<input name="microshop" data-value="http://beian.80wlkj.com/microshop/index.php?act=home&op=index&member_id=5" data-name="我的微商城" type="checkbox" class="checkbox" />
我的微商城</label>
</dd>
</dl>
</div>
<div class="bottom">
<input type="submit" value="确定" class="setting" nctype="closeCommonOperations">
</div>
</div>
</div>
<div class="ncm-user-info">
<div class="avatar"><img src="http://beian.80wlkj.com/data/upload/shop/common/default_user_portrait.gif">
<div class="frame"></div>
</div>
<div class="name" style="text-align:center;">
	hanhan123
</div>
</div>
<!-- <ul class="ncm-sidebar ncm-quick-menu">
<li class="side-menu-quick" nctype="commonOperations"> <a href="javascript:void(0)">
<h3>常用操作</h3>
</a>
<ul> -->
</ul>
</li>
</ul>
<ul id="sidebarMenu" class="ncm-sidebar">
<li class="side-menu"><a href="javascript:void(0)" key="trade">
<h3>交易管理</h3>
</a>
<ul>
<li class="selected"><a href="../view/orderList.html?act=member_order&op=index">实物交易订单</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_points&op=index">我的积分</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_voucher&op=index">我的代金券</a></li>
</ul>
</li>
<li class="side-menu"><a href="javascript:void(0)" key="serv">
<h3>客户服务</h3>
</a>
<ul>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_refund&op=index">退款及退货</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_complain&op=index">交易投诉</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_consult&op=my_consult">商品咨询</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_inform&op=index">违规举报</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_mallconsult&op=index">平台客服</a></li>
</ul>
</li>
<li class="side-menu"><a href="javascript:void(0)" key="info">
<h3>资料管理</h3>
</a>
<ul>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_information&op=member">账户信息</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_security&op=index">账户安全</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_address&op=address">收货地址</a></li>
<li><a href="http://beian.80wlkj.com/shop/index.php?act=member_message&op=message">我的消息</a></li>
</ul>
</li>
</ul>
</div>
<div class="right-layout">
<link rel="stylesheet" type="text/css" href="http://beian.80wlkj.com/data/resource/js/jquery-ui/themes/ui-lightness/jquery.ui.css" />
<div class="wrap">
<div class="tabmenu">
<ul class="tab pngFix">
<li class="active"><a href="javascript:void(0)">订单列表</a></li></ul>
</div>
<table class="ncm-default-table order">
</table>
</div>
<script charset="utf-8" type="text/javascript" src="http://beian.80wlkj.com/data/resource/js/jquery-ui/i18n/zh-CN.js"></script>
<script charset="utf-8" type="text/javascript" src="http://beian.80wlkj.com/data/resource/js/sns.js"></script>
<script type="text/javascript">
$(function(){
    $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
    $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
</div>
<div class="clear"></div>
</div>
<div class="footer">
	<ul class="server">
		<li>
			<img src="../imgs/index/01.png">
		</li>
		<li>
			<img src="../imgs/index/02.png">
		</li>
		<li>
			<img src="../imgs/index/03.png">
		</li>
		<li>
			<img src="../imgs/index/04.png">
		</li>
	</ul>
	<ul class="firmInfo">
		<img class="firmInfo__logo" src="../imgs/index/logo.png">
		<div class="firmInfo__text">
		    <div style="font-size:14px;color:#666;line-height:30px;">
		    	公司电话：
		    </div>
			<div class="firmPhone">
				400-100-0000
			</div>
			<div class="firmArea">
				公司地址：杭州市萧山区金城路358号蓝爵国际写字楼
			</div>
		</div>
		<div class="firmInfo__QRCode">
			<img src="../imgs/index/logo.png">
			<p>了解更多</p>
		</div>
		
	</ul>
</div>
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script type="text/javascript" src="http://beian.80wlkj.com/data/resource/js/jquery.cookie.js"></script>
<link href="http://beian.80wlkj.com/data/resource/js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://beian.80wlkj.com/data/resource/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="http://beian.80wlkj.com/data/resource/js/qtip/jquery.qtip.min.js"></script>
<link href="http://beian.80wlkj.com/data/resource/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">

<script src="http://beian.80wlkj.com/shop/resource/js/compare.js"></script>
<script type="text/javascript">
	$(function(){
		var username = storage.getStorage('username')||'';
		console.log(username);
		$('#username').html(username);
		if(!username){
			$('#loginIn').show();
			$('#register').show();
			$('#loginOut').hide();
			console.log(!1);
		}else{
			$('#loginIn').hide();
			$('#register').hide();
			$('#loginOut').show();
		}
		$('#loginIn').click(function(){
			window.location.href = "./login.html"
		})
		$('#register').click(function(){
			window.location.href = "./register.html"
		})
		$('#loginOut').click(function(){
			storage.storageClear();
			window.location.href = "./login.html"
		})
		$('.goodsList ul li').click(function(){
			var href = './goodsDetail.html?id=' + this.id;
			window.location.href = href;
		})
		console.log(getQueryString('id'));
		$(".quick-menu dl").hover(function() {
        $(this).addClass("hover");
        },
         function() {
         $(this).removeClass("hover");
         });
	})
</script>

<script type="text/javascript">
	$(function(){
		console.log(getQueryString('state_type'));
		if(getQueryString('state_type') == 'state_new' || !getQueryString('state_type')){
			$('.ncm-default-table').show();
		}else{
			$('.ncm-default-table').hide();
		}
		_getList();
	})
	function _getList(){
		var url = 'http://192.168.0.120:8080/ymshoping/queryOrder?token='+storage.getStorage('token');
		  $.ajax({
                url:url,
                dataType:'jsonp',
                jsonp:'callback',//传递给请求处理程序或页面的，用以获得jsonp回调函数名的参数名(默认为:callback)
                jsonpCallback:"success_jsonpCallback",//自定义的jsonp回调函数名称，默认为jQuery自动生成的随机函数名
                contentType: 'application/json; charset=utf-8',
                success:function(res){
                	var temp = '<thead><tr><th class="w10"></th><th colspan="2">商品</th><th class="w100">单价（元）</th><th class="w40">数量</th><th class="w100">售后</th><th class="w100">交易状态</th><th class="w150">交易操作</th></tr></thead>';
                	var orderList = '';
                	var strDes = '';
                   if(res.code == 0){
                   	res.order.forEach(function(item,index){
                   		var shopName = '';
                	    var str = '';
                   		item.orderDetails.forEach(function(val,idx){
                   			if (item.shopsName) {
                   				shopName = item.shopsName;
                   			}

                   			console.log(item.orderNum);

                   			str += '<tr><td class="bdl"></td><td class="w70"><div class="ncm-goods-thumb"><a href="#"><img src="http://192.168.0.120:8080/ymshoping/pic?picId='+val.goodsOrder.picId+'"/></a></div></td><td class="tl"><dl class="goods-name"><dt><a href="" target="_blank">'+val.goodsOrder.goodsName+'</a></dt><dd><span class="sale-type">抢购</span></dd></dl></td><td>'+parseFloat(val.goodsOrder.mall).toFixed(2)+'</td><td>'+val.goodsOrder.amount+'</td><td></td></tr>'	
                   		})
                   		strDes = '<td class="bdl" rowspan="'+item.orderDetails.length+'"><p class=""><strong>'+parseFloat(item.shopsMoney).toFixed(2)+'</strong></p><p class="goods-freight">（免运费） </p><p title="支付方式：在线付款">在线付款</p></td><td class="bdl" rowspan="'+item.orderDetails.length+'"><p><span style="color:#36C">待付款</span> </p><p><a href="./orderDetail.html?orderId='+item.orderNum+'">订单详情</a></p></td><td class="bdl bdr" rowspan="'+item.orderDetails.length+'"><p><a href="javascript:void(0)" class="ncm-btn ncm-btn-red" id="delOrder">取消订单</a></p></td>';
                   		orderList += '<tbody order_id="'+item.orderId+'" class="pay"><tr><td colspan="19" class="sep-row"></td></tr><tr><td colspan="19" class="pay-td"><span class="ml15">在线支付金额：<em>'+item.shopsMoney+'</em></span> <a class="ncm-btn ncm-btn-orange fr mr15" data-ordernum="'+item.orderNum+'" id="payOrder">订单支付</a></td></tr><tr><th colspan="19"> <span id="orderNum" class="ml10" data-ordernum="'+item.orderNum+'">订单号：'+item.orderNum+' </span><span>下单时间'+item.addDate+'</span><span><a href="" title="">'+shopName+'</a></span><span member_id="1"></span></th></tr>'+str+'</tbody>';

                   	})
                   	temp += orderList;
                   	$('.ncm-default-table').html(temp);
                   	$('.ncm-default-table tbody tr').eq(3).html($('.ncm-default-table tbody tr').eq(3).html()+strDes);
                   }
                $('#delOrder').click(function(){
			      console.log(11);
			       _delOrder();
		        })
		        $('#payOrder').click(function(){
		        	window.location.href = '../view/pay.html?orderNum=' + $('#payOrder').data().ordernum;
		        })
                },
                error:function(res){
                    console.log(res.responseText);
                }
            });
	}
	function _delOrder(){
		var url = 'http://192.168.0.120:8080/ymshoping/deleteOrder?token='+storage.getStorage('token')+'&orderNum=' + $('#orderNum').data().ordernum; 
		 $.ajax({
                url:url,
                dataType:'jsonp',
                jsonp:'callback',//传递给请求处理程序或页面的，用以获得jsonp回调函数名的参数名(默认为:callback)
                jsonpCallback:"success_jsonpCallback",//自定义的jsonp回调函数名称，默认为jQuery自动生成的随机函数名
                contentType: 'application/json; charset=utf-8',
                success:function(res){
                	_getList();
                },
                error:function(res){
                    console.log(res.responseText);
                }
            });
	}
</script>
</body></html>